import request from '@/utils/request'

// 查询官网意向客户信息列表
export function listCustomerIntent(query) {
  return request({
    url: '/cooperate/customerIntent/list',
    method: 'get',
    params: query
  })
}

// 查询官网意向客户信息详细
export function getCustomerIntent(id) {
  return request({
    url: '/cooperate/customerIntent/' + id,
    method: 'get'
  })
}

// 新增意向客户信息标记
export function addCustomerIntentLike(customerId) {
  return request({
    url: `/cooperate/customerIntentLike/like/${customerId}`,
    method: 'post',
  })
}

// 删除意向客户信息标记
export function delCustomerIntentLike(customerId) {
  return request({
    url: '/cooperate/customerIntentLike/unlike/' + customerId,
    method: 'DELETE'
  })
}


// 查询意向客户信息反馈列表
export function listCustomerIntentFeedback(query) {
  return request({
    url: '/cooperate/customerIntentFeedback/list',
    method: 'get',
    params: query
  })
}

// 查询意向客户信息反馈详细
export function getCustomerIntentFeedback(id) {
  return request({
    url: '/cooperate/customerIntentFeedback/' + id,
    method: 'get'
  })
}

// 新增意向客户信息反馈
export function addCustomerIntentFeedback(data) {
  return request({
    url: '/cooperate/customerIntentFeedback',
    method: 'post',
    data: data
  })
}

// 修改意向客户信息反馈
export function updateCustomerIntentFeedback(data) {
  return request({
    url: '/cooperate/customerIntentFeedback',
    method: 'PUT',
    data: data
  })
}


// 删除意向客户信息反馈
export function delCustomerIntentFeedback(id) {
  return request({
    url: '/cooperate/customerIntentFeedback/' + id,
    method: 'DELETE'
  })
}